package com.liang.auth.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liang.auth.infra.basic.entity.AuthRole;
import com.liang.auth.infra.basic.service.AuthRoleService;
import com.liang.auth.infra.basic.mapper.AuthRoleMapper;
import org.springframework.stereotype.Service;

/**
 * @author 29018
 * @description 针对表【auth_role(角色表)】的数据库操作Service实现
 * @createDate 2024-10-22 14:14:00
 */
@Service
public class AuthRoleServiceImpl extends ServiceImpl<AuthRoleMapper, AuthRole> implements AuthRoleService {

    @Override
    public AuthRole getByRoleKey(String normalUser) {
        return lambdaQuery().eq(AuthRole::getRoleKey, normalUser).one();
    }
}




